package cn.knight.system.service.impl;

import cn.knight.basic.service.impl.BaseServiceImpl;
import cn.knight.system.domain.Dictionaries;
import cn.knight.system.mapper.DictionariesMapper;
import cn.knight.system.mapper.DictionarydetailMapper;
import cn.knight.system.service.IDictionariesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DictionariesServiceImpl extends BaseServiceImpl<Dictionaries> implements IDictionariesService {

    @Autowired
    private DictionariesMapper dictionariesMapper;

    @Autowired
    private DictionarydetailMapper dictionarydetailMapper;

    @Override
    public void remove(Long id) {
        dictionarydetailMapper.tpyeremove(id);
        dictionariesMapper.remove(id);
    }

    @Override
    public void patchDel(Long[] ids) {
        dictionarydetailMapper.typepatchDel(ids);
        dictionariesMapper.patchDel(ids);
    }
}
